<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--bootstrap插件-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link href="/static/plugin/bootstrap/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/plugin/jo/joUI.css" rel="stylesheet"/>
    <!--字体插件-->
    <link href="/static/plugin/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/static/plugin/layui-2.4.3/css/layui.css" rel="stylesheet"/>
    <!--ztree-->
    <link href="/static/plugin/zTree/css/metroStyle/metroStyle.css" rel="stylesheet"/>
    <!--common-->
    <link href="/static/css/common.css" rel="stylesheet"/>
    <title>有害物质清单表单</title>
</head>
<body>
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">有害物质清单信息</li>

    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <!--按钮栏-->
                        <div class="form-group button-bar button-bar">
                            <!--按钮占位符.加载到的按钮会渲染到占位符里面-->
                            <span class="young-button-placeholder" navigateId="YHWZ_FORM_BUTTON"></span>
                        </div>
                        <!--按钮栏-->
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <form id="pageForm" name="pageForm" action="" method="post">
                            <table class="table-bordered layui-table">
                                <colgroup>
                                    <col width="150">
                                    <col width="300">
                                    <col width="150">
                                </colgroup>
                                <input  type="text"   name="id" value="" class="form-control " style="display: none;" />
                                <tbody>
                                <tr id="harmfullistId">
                                    <td class="styleright must ">序号</td>
                                    <td class="stylecenter" colspan="3">
                                        <input type="text"   name="harmfullistId" value="" class="form-control readonly-edit"  />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">危险废物名称</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="hazardousName" value="" class="form-control readonly-edit"  ErrEmpty="危险废物名称不允许为空" />
                                    </td>
                                    <td class="styleright must">危险废物编码</td>
                                    <td class="stylecenter">
                                         <input type="text"   name="hazardousType" value="" class="form-control "  ErrEmpty="危险废物编码不允许为空" />
                                    </td>
                                </tr>

                                <tr>
                                    <td class="styleright must">上年度产生量</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="preyearCreate" value="" class="form-control "  ErrEmpty="上年度产生量不允许为空" ErrNumber="请输入数字"/>
                                    </td>
                                    <td class="styleright must">上年度贮存量</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="preyearStorage" value="" class="form-control "  ErrEmpty="上年度贮存量不允许为空" ErrNumber="请输入数字" />
                                    </td>
                                </tr>
                                <tr>

                                    <td class="styleright must">上年度综合利用量</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="consumption" value="" class="form-control "  ErrEmpty="上年度综合利用量不允许为空" ErrNumber="请输入数字"/>
                                    </td>
                                    <td class="styleright must">综合利用往年贮存量</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="paststorages" value="" class="form-control "  ErrEmpty="综合利用往年贮存量不允许为空" ErrNumber="请输入数字"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">上年度处置量</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="preyearDisposal" value="" class="form-control "  ErrEmpty="上年度处置量不允许为空" ErrNumber="请输入数字" />
                                    </td>
                                    <td class="styleright must">处置往年贮存量</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="disposalstorage" value="" class="form-control "  ErrEmpty="处置往年贮存量不允许为空" ErrNumber="请输入数字"/>
                                    </td>
                                </tr>
                                <tr id="enterprise" style="display: none">
                                    <td class="styleright must">所属企业</td>
                                    <td class="stylecenter">
                                        <input type="text"  id="enterprisecode" name="enterpriseCode" value="" class="form-control "   ErrEmpty="所属企业不许为空" />
                                    </td>
                                </tr>

                                <tr>
                                    <td class="styleright must">备注</td>
                                    <td colspan="3" class="stylecenter">
                                        <textarea type="text"   name="enterpriseRemarks" value="" class="form-control " ErrEmpty="备注不许为空"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">锁定</td>
                                    <td colspan="3" class="stylecenter">
                                        <select style="width: 100px" name="unlack" value="" class="form-control" ErrNumber="锁定不许为空">
                                            <option value="0">未锁定</option>
                                            <option value="1">已锁定</option>
                                        </select>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!--配置信息-->
<script src="/static/js/config.js"></script>
<!--jquery-->
<script src="/static/plugin/jquery/jquery-3.3.1.js"></script>
<script src="/static/plugin/jquery/jquery.cookie.js"></script>
<!--bootstrap-->
<script src="/static/plugin/bootstrap/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/plugin/other/html5shiv.js"></script>
<script src="/static/plugin/other/respond.min.js"></script>
<![endif]-->
<!--layui-->
<script src="/static/plugin/layui-2.4.3/layui.all.js"></script>
<!--ztree-->
<script src="/static/plugin/zTree/js/jquery.ztree.all.js"></script>
<!--common-->
<script src="/static/js/common.js"></script>
<!--jo-->
<script src="/static/plugin/jo/jo.js"></script>
<script src="/static/plugin/jo/jo-adapt.js"></script>
<script src="/static/plugin/jo/jo-page-view.js"></script>
<script src="/static/plugin/jo/jo-page-form.js"></script>
<script src="/static/plugin/jo/jo-listener.js"></script>
<script type="text/javascript">
    $(function(){
        var jParams = {
            "PKName" : "harmfullistId",//主键属性名
            "saveAfter" : "toEdit",
            "addUrl" : "/nyd/uviListhazardous/insert",//新增
            "deleteUrl" : "/nyd/uviListhazardous/delete",//删除
            "updateUrl" : "/nyd/uviListhazardous/update",//修改
            "formDataUrl" : "/nyd/uviListhazardous/get",//查询
            //"readonly2Label" : true //只读转文本
        };
        joForm.initFormPage(jParams);//初始化
        initButton();
    });
    //初始化新增页面回调函数(在初始化按钮前发生)
    joForm.initFormPageOfAdd = function(){
        if(joForm.isAdd){
            $("#harmfullistId").hide();

        }
        $("#enterprisecode").val(jo.getUrlParam("enterprisecode"));
    };
    //初始化表单值前处理
    joForm.initFormValueBefore = function(oJson){
    };
    //初始化表单值后处理
    joForm.initFormValueAfter = function(oJson){

    };
    //新增请求提交前回调函数
    joForm.dealDataAtSaveBefore = function(oJson){

    };
    //修改请求提交前回调函数
    joForm.dealDataAtUpdateBefore = function(oJson){

    };
    /* 关于joForm更多回调函数和配置参数可查看jo-page-form.js */
</script>
</body>
</html>
